
<div class="content-detail">
    <div class="content-detail-title">
        <span class="ico_title"></span>   
        <div class="name_title">
            Sản phẩm Mới nhất
        </div>
    </div>
    <div class="content-detail-rows">
        <?php foreach ($productLastest as $item): ?>
         <div class="content-detail-column">
        <ul>
            <?php $image = ($this->requestAction(array('controller' => 'Images', 'action' => 'view'),array($item['Product']['product_id']))) ;
                ?>
            <li class="img_p"><a href="/san-pham-<?php echo $item['Product']['short_url']; ?>"><img src="../../<?php echo $image[0]['Image']['url']; ?>" alt=""></a></li>
            
            <li class="name"><a href="/san-pham-<?php echo $item['Product']['short_url']; ?>" title="<?php echo $item['Product']['product_name'] ; ?>"><?php echo $item['Product']['product_name'] ; ?></a></li>
            <li class="price">
            Giá: <?php echo number_format($item['Product']['price']); ?> VNĐ
            </li>
            <li class='chitiet'>
                <a href="/san-pham-<?php echo $item['Product']['short_url']; ?>" >» Xem chi tiết</a>
            </li>
        </ul>
        </div>
        <?php endforeach ?>
        <?php if (!empty($productLastest)): ?>
            <div class="view-all">
            <a href="/gian-hang/<?php echo $short_url; ?>/san-pham-moi-nhat">Xem tất cả &gt;&gt;</a>
        </div>
            <?php endif ?>   
    </div>
    <div class="content-detail-title">
        <span class="ico_title"></span>   
        <div class="name_title">
            Sản phẩm bán chạy
        </div>
    </div>
    <div class="content-detail-rows">
        <?php foreach ($productbest as $item): ?>
         <div class="content-detail-column">
        <ul>
            <?php $image = ($this->requestAction(array('controller' => 'Images', 'action' => 'view'),array($item['Product']['product_id']))) ;
                ?>
            <li class="img_p"><a href="/san-pham-<?php echo $item['Product']['short_url']; ?>"><img src="../../<?php echo $image[0]['Image']['url']; ?>" alt=""></a></li>
            
            <li class="name"><a href="/san-pham-<?php echo $item['Product']['short_url']; ?>" title="<?php echo $item['Product']['product_name'] ; ?>"><?php echo $item['Product']['product_name'] ; ?></a></li>
            <li class="price">
            Giá: <?php echo number_format($item['Product']['price']); ?> VNĐ
            </li>
            <li class='chitiet'>
                <a href="/san-pham-<?php echo $item['Product']['short_url']; ?>" >» Xem chi tiết</a>
            </li>
        </ul>
        </div>
        <?php endforeach ?>
        <?php if (!empty($productbest)): ?>
            <div class="view-all">
            <a href="/gian-hang/<?php echo $short_url; ?>/san-pham-ban-chay">Xem tất cả &gt;&gt;</a>
        </div>
            <?php endif ?>  
    </div>                    
</div>